﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Common.Http
{
    /// <summary>
    /// 指定数据源的命令。
    /// </summary>
    [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public class UseConnectionAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="type"></param>
        public UseConnectionAttribute(Type type)
        {
            this.Type = type;
        }

        /// <summary>
        /// 
        /// </summary>
        public Type Type { get; }
    }
}
